using UnityEngine;

public class Health_Bar_Head : MonoBehaviour
{
    void OnEnable()
    {
        Entity.OnFlipped += HandleFlip;
    }
    void OnDisable()
    {
        Entity.OnFlipped -= HandleFlip;
    }
    private void HandleFlip() => transform.rotation = Quaternion.identity;
    public void DisableHealthBar(bool toggle) => gameObject.SetActive(toggle);
}
